package com.flex.mobile.util;

import flex.messaging.FlexSession;
import flex.messaging.MessageClient;
import flex.messaging.client.FlexClient;
import flex.messaging.config.ConfigMap;
import flex.messaging.services.AbstractBootstrapService;

public class BlazeDSListener extends AbstractBootstrapService {

   @Override
   public void initialize(String id, ConfigMap properties) {

      System.out.println("MyBlazeDSListener is initializing...");

      MyFlexSessionListener sessionListener = new MyFlexSessionListener();
      FlexSession.addSessionCreatedListener(sessionListener);
   
      MyFlexClientListener flexClientListener = new MyFlexClientListener();
      FlexClient.addClientCreatedListener(flexClientListener);
   
      MyMessageClientListener messageClientListener = new MyMessageClientListener();
      MessageClient.addMessageClientCreatedListener(messageClientListener);
   }

   @Override
   public void start() {

   }

   @Override
   public void stop() {

   }

}
